package com.example.test;

import com.example.pojo.User;
import com.example.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;


/**
 * @Author: Yun
 * @Date: 2024/3/7
 */
@SpringBootTest
public class Iservice_test {

    @Autowired
    private UserService userService;

    @Test
    public void test_save() {
        User user = new User();
        user.setAge(14);
        user.setName("lisi");
        user.setEmail("sn@qq.com");
        boolean save = userService.save(user);
        System.out.println(save);
    }


}
